package xcmg.device.dao.mapper.buyBack;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import xcmg.device.dao.entity.buyBack.BackOutboundDO;
import xcmg.device.service.vo.buyBack.BackOutboundVO;

import java.util.List;

@Mapper
@Repository
public interface BackOutboundMapper {
    int deleteByPrimaryKey(String id);

    int insert(BackOutboundDO record);

    int insertSelective(BackOutboundDO record);

    BackOutboundDO selectByPrimaryKey(String id);

    List<BackOutboundDO> list(BackOutboundVO inboundVO);

    int updateByPrimaryKeySelective(BackOutboundDO record);

    int updateByPrimaryKey(BackOutboundDO record);

    List<BackOutboundDO> findForDeleteByIds(@Param("ids") List<String> ids);

    List<String> findOrderList(@Param("ids") List<String> ids);

    List<BackOutboundDO> findBackOrderList(@Param("ids") List<String> ids);

    int remove(@Param("ids") List<String> ids);

    List<BackOutboundDO> findByIds(@Param("ids") List<String> ids);

    int listCount(BackOutboundVO inboundVO);

    BackOutboundDO findByOutboundOrder(@Param("outboundOrder") String inboundOrder, @Param("orgId") String orgId);

    int updateStatus(@Param("outboundOrder") String inboundOrder, @Param("status") Integer status, @Param("orgId") String orgId);

}